package com.service;

import java.util.List;


import com.dao.ProductDao;

import com.model.Product;

public class ProductService {
    public ProductDao productDao=new ProductDao();
	public List<Product> selectproduct(){
		return productDao.selectproduct();
	}
	//出售商品查询（用户）,条件从传递对象中取出
	public List<Product> query_user(Product product,int cp,int pagesize){
		 return productDao.query_user(product, cp, pagesize);
	}
	public List<Product> query_user2(Product product){
		 return productDao.query_user2(product);
	}
	public int count_user(Product product){
		return  productDao.count_user(product);
	}
}
